﻿using Demo.OrderService.Entities;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;

namespace Demo.OrderService.Data;

public class OrderServiceDbContext : AbpDbContext<OrderServiceDbContext>
{
    public OrderServiceDbContext(DbContextOptions<OrderServiceDbContext> options)
        : base(options)
    {
    }
    public DbSet<ShopOrder> ShopOrderDb { get; set; }
    public DbSet<ShopOrderDetail> ShopOrderDetailDb { get; set; }
    public DbSet<ShopOrderLogistics> ShopOrderLogisticsDb { get; set; }


    protected override void OnModelCreating(ModelBuilder builder)
    {
        base.OnModelCreating(builder);

        /* Include modules to your migration db context */

        /* Configure your own entities here */
    }
}
